#![allow(unused)]  //全局，但需要放在首行，否则提示编译错误
//ch14_2_1
//in lib.rs
mod front_of_house {
    // 实现此模块
    pub mod hosting {
        pub fn add_to_waitlist(){}
        pub fn seat_at_table(){}
    }
    
    pub mod serving {
        pub fn take_order(){}
        pub fn serve_order(){}
        pub fn take_payment(){}
        pub fn complain(){}
    }
}
/*
//ch14_2_2
//in lib.rs
//#[allow(unused)]
mod front_of_house {
    // 实现此模块
    pub mod hosting {
        pub fn add_to_waitlist(){}
        pub fn seat_at_table(){}
    }
    
    pub mod serving {
        pub fn take_order(){}
        pub fn serve_order(){}
        pub fn take_payment(){}
        pub fn complain(){}
    }
}

pub fn eat_at_restaurant() {
	crate::front_of_house::hosting::add_to_waitlist();
	
	front_of_house::hosting::add_to_waitlist();
}
*/
